home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / win_u_z / win_tech.zip / DM_WIN31.TXT < prev   
Text File  |  1992-04-03  |  21KB  |  356 lines

  1. ---------------------------------------------------------------------------
  2.              Disk Manager 5.10 and Windows - (Technical Version)
  3. ---------------------------------------------------------------------------
  4.  
  5. NOTE: This level of information is not required by most users, therefore,
  6. Ontrack Technical Support will not provide detailed support regarding its
  7. contents.
  8.  
  9. Ontrack has incorporated enhancements to version 5.10 of our Disk Manager
  10. hard disk installation software, or more specifically our device driver
  11. DMDRVR.BIN, to improve compatibility with Microsoft Windows 3.1 permanent
  12. swapfiles.  In most cases you will now be able to use a permanent swapfile
  13. with Windows 386 enhanced mode.  The information provided in this document
  14. is only relevant to users of 386 and 486 class computers, as it relates to
  15. Windows 386 enhanced mode exclusively.  Although not effected by changes to
  16. DMDRVR.BIN, information on compatibility with Windows 3.1 FastDisk support
  17. is also provided.
  18.  
  19. NOTE: The information that follows considers only Windows 3.1 and Disk
  20. Manager software 5.10.  Permanent swapfiles can not be used if previous
  21. versions of either software is used.  Also, other elements, such as disk
  22. compression software, may also inhibit permanent swapfile creation or
  23. FastDisk support.
  24.  
  25. PERMANENT SWAPFILE COMPATIBILITY
  26.  
  27. Historically permanent swapfiles have not been available on systems using
  28. DMDRVR.BIN.  This is because DMDRVR.BIN allows conditions to exist in your
  29. system which Windows does not adjust for when accessing a permanent
  30. swapfile.  There are three conditions involving DMDRVR.BIN, and the
  31. XBIOS.OVL INT13 overlay allow, that can cause incompatibly with permanent
  32. swapfiles.  These are the same conditions that allow Ontrack partitions to
  33. transcend the limitations of DOS partitions.  The three conditions are
  34. explained in detail below.  A system must be configured within Windows
  35. limitations for all three of these conditions to be permanent swapfile
  36. compatible.
  37.  
  38. NON-HOMOGENEOUS DRIVES
  39.  
  40.      A drive is said to be non-homogeneous when the number of heads and
  41.      sectors-per-track (SPT) are not the same in all partitions.
  42.  
  43.      DOS can only access your hard drive using the parameters specified the
  44.      ROM BIOS drive table entry, referenced by your CMOS drive type.  As a
  45.      result, the number of heads and SPT used in any DOS partitions,
  46.      including DOS partitions created by Disk Manager software, will match
  47.      the parameters of the drive type set in CMOS.  If there is not an
  48.      accurate drive table entry available for the drive, there will be a
  49.      loss of hard drive capacity.  For example, if you have a drive that is
  50.      1024x12x17 (102MB) but the closest entry in your drive table is
  51.      1024x9x17 (76.5MB) you would loose 25.5MB of capacity if only DOS
  52.      partitions are used.
  53.  
  54.      Ontrack WRITE-READ and READ-ONLY partitions are not subject to drive
  55.      table limitations.  The Disk Manager program (DM.EXE) uses the drives
  56.      actual parameters when creating WRITE-READ and READ-ONLY partitions and
  57.      writes these parameters to the drive.  When DMDRVR.BIN is loaded at
  58.      boot time, it reads the parameters from the drive and resets the disk
  59.      subsystem so it can access the entire drive.  Taking the scenario
  60.      above, but allocating only 40 cylinders (3MB) of the drive for a DOS
  61.      bootable partition (you can not boot from an Ontrack partition) and
  62.      allocating the remainder of the drive in WRITE-READ partitions, you
  63.      would loose only 1MB of capacity.
  64.      While DMDRVR.BIN can transcend the limitations of your computers ROM
  65.      BIOS and make additional space available, the combination of DOS and
  66.      WRITE-READ partitions above results in a non-homogeneous drive.  This
  67.      will not normally present any problems for either DOS or Windows. 
  68.      DMDRVR.BIN is attached to DOS as a block device driver.  When the drive
  69.      is accessed from a DOS level, either INT21 or INT25/26, calls are made
  70.      through DMDRVR.BIN, which adjusts for the non-homogeneous condition. 
  71.      Windows will normally access the drive through DOS and through
  72.      DMDRVR.BIN, which again can adjust for the for the non-homogeneous
  73.      condition.
  74.  
  75.      For Windows to use a permanent swapfile it must be able to access the
  76.      disk at the INT13 level, below DOS and DMDRVR.BIN.  While this low
  77.      level access is certainly justifiable, Windows does not gain
  78.      DMDRVR.BIN's support for non-homogeneous drives when accessing
  79.      permanent swapfiles.  Windows itself does not adjust for this condition
  80.      so it will not be able to successfully access a permanent swapfile on a
  81.      non-homogeneous drive.  Windows could, however, successfully access a
  82.      permanent swapfile on a WRITE-READ partition on a homogeneous drive. 
  83.  
  84.      To prevent problems, when you attempt to create a permanent swapfile
  85.      Windows or Setup will check the drives in the system to see if there
  86.      are any partitions type present that could allow the drive to be
  87.      non-homogeneous.  Since WRITE-READ and READ-ONLY partitions allow this
  88.      condition, a message dialogue is presented indicating that a
  89.      partitioning scheme on your hard drive does not permit the creation of
  90.      a permanent swapfile, suggesting that you create a temporary swapfile
  91.      (which by the way works fine).  No attempt is made to determine if the
  92.      drive is actually non-homogeneous, so permanent swapfiles are
  93.      unnecessarily prohibited on homogeneous drives.
  94.  
  95.      In the interest of allowing permanent swapfiles, enhancements have been
  96.      made to DMDRVR.BIN to overcome this unnecessary restriction for
  97.      homogenous drives.  Two new Ontrack partition types,
  98.      WRITE-READ-HOMOGENEOUS and READ-ONLY-HOMOGENEOUS, are now supported. 
  99.      These new partition types are used exclusively on homogenous drives,
  100.      hence Windows and Setup will allow swapfile creation on
  101.      WRITE-READ-HOMOGENEOUS partitions.  The new DMDRVR.BIN will
  102.      automatically determine if your drive is homogenous or non-homogeneous. 
  103.      If your drive is homogenous all WRITE-READ and READ-ONLY partitions
  104.      will be converted to WRITE-READ-HOMOGENEOUS and READ-ONLY-HOMOGENEOUS
  105.      partitions.  If your drive is non-homogeneous Ontrack partitions will
  106.      remain WRITE-READ and READ-ONLY.  If your drive does not have more that
  107.      1024 cylinders, DMDRVR.BIN will perform this conversion automatically
  108.      the first time your system is booted with the new DMDRVR.BIN installed. 
  109.      If your drive is over 1024 cylinders, you will have to manually enable
  110.      this support (see below). 
  111.  
  112.      If your drive is non-homogeneous you must eliminate that condition
  113.      before you will be able to use Windows permanent swapfiles.  Depending
  114.      on your system configuration you may need to perform one of the
  115.      following.
  116.  
  117.      1)   Reconfigure a dual drive System.
  118.  
  119.           If you have two different hard drives on an AT compatible
  120.           controller card, it is possible that one of your drives has a
  121.           matching head and SPT entry in CMOS, while the other may not.  If
  122.           your second drive can have its head and SPT values represented by
  123.           a CMOS entry (cylinders are unimportant so long as the actual
  124.           cylinder count of the drive is not exceeded) you could make your
  125.           system permanent swapfile compatible by backing up files on both
  126.           drives and reinstalling your system.  Reinstall your hardware
  127.           making the drive having a homogeneous drive table entry the
  128.           primary drive (80h) and use only WRITE-READ and READ-ONLY
  129.           partitions on the secondary drive (81h).  After reinstalling, the
  130.           new DMDRVR.BIN will automatically make your system permanent
  131.           swapfile compatible, unless you have a drive over 1024 cylinders
  132.           (see below).
  133.  
  134.      2)   Explore BIOS level support options.
  135.  
  136.           Check your drive type table for an entry that has the same heads
  137.           and SPT as your drive.  You can view your entire drive table using
  138.           DM.EXE in manual mode.  It is possible that the drive was
  139.           installed using a less than optimal drive type, reinstalling with
  140.           an appropriate drive type will allow your system to be made
  141.           permanent swapfile compatible by the new DMDRVR.BIN.  You could
  142.           also set up a user defined drive type if available.
  143.  
  144.           If you have an older AT, with spare ROM sockets, Ontrack has an
  145.           option ROM (SuperProms) that will provide you with additional
  146.           drive types to choose from.  Reinstalling using a SuperProms drive
  147.           type with the same heads and SPT as your drive will allow your
  148.           system to be permanent swapfile compatible by the new DMDRVR.BIN.
  149.  
  150.           If you have a controller card with BIOS capable of presenting your
  151.           drives parameters (most ESDI and RLL controller will do this) use
  152.           its BIOS routine, accessed through DEBUG to reinstall initialize
  153.           your drive.  If the controller is allowed to initialize the drive
  154.           it will load the appropriate parameters when your system is
  155.           booted, this will eliminate the non-homogeneous condition.  If you
  156.           initialize with BIOS, you can still use DM.EXE to partition and
  157.           prepare the drive, however, you must install the drive with
  158.           standard parameters and not allow DM.EXE to initialize the drive.
  159.  
  160.      3)   Sacrifice space for permanent swapfile compatibility.
  161.  
  162.           If you must have a permanent swapfile and can not make your drive
  163.           homogeneous following the previous suggestions, you can reinstall
  164.           your drive using only the head and SPT values specified in CMOS. 
  165.           You can use DM.EXE in manual mode to do this, when you select your
  166.           drive from the drive list choose to edit the parameters and change
  167.           the heads and or SPT values to match the CMOS parameters. 
  168.           Reinstalling in this fashion will make your system permanent
  169.           swapfile compatible but will also cause a loss of usable drive
  170.           capacity.
  171.  
  172. LOGICAL SECTOR SIZES GREATER THAN 512 BYTES
  173.  
  174.      NOTE: DOS 4.0, 4.01 and 5.0 (and Compaq 3.31) require that all logical
  175.      sectors be 512 bytes.  If you are using one of these DOS versions, the
  176.      information provided in this section is not applicable to your
  177.      configuration.
  178.  
  179.      Under DOS 3.30 and previous versions, the number of logical sectors
  180.      that can exist in one partition is limited, but the logical sector size
  181.      is not.  Since DOS itself will use only 512 byte sectors, the largest a
  182.      DOS partition can be under these versions is 32MB.  In order to support
  183.      partitions larger than 32MB under these DOS versions, Disk Manager
  184.      software increases size of the logical sector.  The logical sector size
  185.      used is dependent on partition size.  On partitions of up to 32MB all
  186.      logical sectors will be the default 512 bytes.  To exceed 32MB the
  187.      sector size is increased to 1024 bytes, to exceed 64MB the sector size
  188.      is increased to 2048 bytes.  This progression continues with the
  189.      largest possible partition of 512MB using an 8192 byte sector.  The
  190.      cluster size in any partition over 16MB will be four times the logical
  191.      sector size, under 16MB it is 4096 bytes.
  192.  
  193.      Since Disk Manger's support for large partitions operates completely
  194.      with in the rules for DOS 3.30 and previous versions, it does not
  195.      normally present a problem.  All accesses to the drive made through DOS
  196.      INT21 and INT25/26 are handled correctly by DOS and DMDRVR.BIN and
  197.      sector size need not be considered.  When Windows accesses the drive
  198.      through DOS, as it generally does, it is not affected by logical sector
  199.      size. 
  200.  
  201.      When Windows accesses a permanent swapfile it does so at the INT13
  202.      level, below DOS and DMDRVR.BIN.  While this low level access is
  203.      certainly justifiable, Windows does not take into account the
  204.      possibility that the logical sector size could be larger than 512
  205.      bytes.  As a result Windows will not be able to successfully access a
  206.      permanent swapfile on drive with partitions created with greater than
  207.      512 byte sectors.  Windows could, however, successfully access a
  208.      permanent swapfile on a WRITE-READ if the sector size in all partition
  209.      was 512 bytes.
  210.  
  211.      To prevent problems, Windows and Setup will check the drives in your
  212.      system to determine if there are any partitions present that allow
  213.      larger than 512 byte sectors.  Since WRITE-READ and READ-ONLY
  214.      partitions allow sector sizes larger than 512 bytes, Windows and Setup
  215.      will not allow a permanent swapfile to be created.
  216.  
  217.      The enhancements made to DMDRVR.BIN allow it to make your partitions
  218.      compatible with Windows permanent swapfiles only if all logical sector
  219.      sizes on all partitions are 512 bytes.  In order to take advantage of
  220.      the new features described above, you will need to reconfigure your
  221.      system to make all logical sector sizes 512 bytes.  There are two ways
  222.      that you can accomplish this.
  223.  
  224.      1)   Reinstall your system with all partitions 32MB or less.
  225.  
  226.           You can continue to use DOS 3.30 or previous version if you backup
  227.           your files and reinstall your system, with DM.EXE, creating only
  228.           partitions of 32MB or less.  After the system is reinstalled with
  229.           all 512 byte logical sectors, it will automatically be made
  230.           permanent swapfile compatible by the new DMDRVR.BIN, unless you
  231.           have a drive with more than 1024 cylinders (see below).  This will
  232.           be quite a bit of work and drastically limits flexibility when
  233.           configuring your system.  Option number 2 provides for a better
  234.           solution.
  235.  
  236.      2)   Reinstall your system with a newer version of DOS.
  237.  
  238.           By far the best way to do this is to backup your files and
  239.           reinstall your system, using DM.EXE, under DOS 5.0.  Any version
  240.           of DOS later than 4.0 (and Compaq 3.31) will use only 512 byte
  241.           sectors regardless of partition size, however, the Windows 3.1 is
  242.           optimized for DOS 5.0 making it the version of choice.  After the
  243.           system is reinstalled with DOS 4.0 or later, it will automatically
  244.           be made permanent swapfile compatible, unless you have a drive
  245.           over 1024 cylinders (see below). 
  246.  
  247. DRIVES WITH MORE THAN 1024 CYLINDERS
  248.  
  249.      Many drives may be homogeneous and use 512 byte sectors, but have more
  250.      than 1024 cylinders.  Although permanent swapfiles can be used on
  251.      homogeneous drives with over 1024 cylinders, the new DMDRVR.BIN will
  252.      not automatically convert partitions on these drives.  This is because
  253.      Windows accesses a permanent swapfile at a level below both DOS and
  254.      DMDRVR.BIN, and can not access more than 1024 cylinders.  As a result
  255.      the permanent swapfile will not be usable unless it resides entirely
  256.      within the first 1024 cylinders of the drive.  You must keep this
  257.      limitation in mind when creating your permanent swapfile.
  258.  
  259.      To enable DMDRVR.BIN to convert partitions on drives with more than
  260.      1024 cylinders, you need to add a /P (enable Partition conversion)
  261.      switch to the DMDRVR device statement.  If the drive is homogeneous,
  262.      any WRITE-READ and READ-ONLY partitions will be changed to
  263.      WRITE-READ-HOMOGENEOUS and READ-ONLY-HOMOGENEOUS partitions for
  264.      permanent swapfile compatibility.  If the drive is non-homogeneous
  265.      Ontrack partitions will remain WRITE-READ and READ-ONLY.  The modified
  266.      device statement should appear as below.
  267.  
  268.      DEVICE=C:\DMDRVR.BIN /P
  269.  
  270.      During permanent swapfile creation Windows and Setup access the drive
  271.      through DOS.  As a result, it is possible to create a permanent
  272.      swapfile that is not within the first 1024 cylinders of the drive. 
  273.      When Windows is restarted, after the such a swapfile is created, it
  274.      will present an error message indicating that the swapfile is corrupt. 
  275.      This results from Windows inability to access it correctly beyond 1024
  276.      cylinders.  Windows will continue to load using a temporary swapfile,
  277.      no data corruption will result. 
  278.  
  279.      If you receive a corrupt swapfile message when starting Windows, after
  280.      creating a swapfile on a drive with more than 1024 cylinders, don't
  281.      panic and call Microsoft.  The problem is most likely that all or part
  282.      of the swapfile is located above 1024 cylinders.  You should try the
  283.      following steps to eliminate this condition.
  284.  
  285.      1)   Create the permanent swapfile on a DOS partition.
  286.  
  287.           Since the DOS partition itself must reside entirely within the
  288.           first 1024 cylinders, the swapfile will too.  This is the surest
  289.           way to eliminate a corrupt swapfile error.  You may need to
  290.           optimize a partition to get enough contiguous free space to create
  291.           a permanent swapfile of the size you desire.
  292.  
  293.      2)   Create the permanent swapfile on a WRITE-READ-HOMOGENEOUS
  294.           partition below 1024 cylinders.
  295.  
  296.           If your DOS partition(s) are too small, or are filled with files,
  297.           and you have a WRITE-READ-HOMOGENEOUS partition that resides
  298.           within the first 1024 cylinders will also make an excellent host
  299.           for a permanent swapfile.  Since the partition resides below 1024
  300.           cylinders, the swapfile will too.  You can get the ending
  301.           cylinders for your partitions by running DM.EXE in manual mode and
  302.           displaying the partition table.  You may need to optimize a
  303.           partition to get enough contiguous free space to create a
  304.           permanent swapfile of the size you desire.
  305.  
  306.      3)   Create the permanent swapfile on a WRITE-READ-HOMOGENEOUS
  307.           partition that crosses the 1024th cylinder.
  308.  
  309.           This should only be considered if you do not have a partition
  310.           within the first 1024 cylinders that is large enough to host the
  311.           permanent swapfile.  If you have a partition large enough with the
  312.           first 1024 cylinders, copy files out of it and into one that
  313.           crosses or exceeds 1024th cylinder and create the swapfile there.
  314.           Creating a permanent swapfile on a partition that crosses the
  315.           1024th cylinder is very likely to cause a corrupt swapfile error.
  316.           If you don't have a partition within the first 1024 cylinders, you
  317.           may find it much less frustrating to backup the drive and
  318.           repartition it, allocating sufficient space in a DOS partition (or
  319.           WRITE-READ-HOMOGENEOUS under 1024) to host the permanent swapfile. 
  320.           This is a lot of work, but worth the effort, particularly if you
  321.           decide to change the size of your swapfile.
  322.  
  323.           If you are intent on creating a permanent swapfile on a
  324.           WRITE-READ-HOMOGENEOUS partition that crosses the 1024 cylinder
  325.           boundary, you will need to free sufficient contiguous space within
  326.           the first 1024 cylinders.  If your drive is relatively empty it
  327.           may not be hard to allocate a permanent swapfile.  Remember that
  328.           the swapfile must be contiguous, you will want to allow plenty of
  329.           padding to your swapfile size as you may not be able to enlarge it
  330.           later.  If your drive is full you may need to back off and delete
  331.           a good deal of files, then optimize the drive to get enough
  332.           contiguous space within the first 1024 cylinders.
  333.  
  334. COMPATIBILITY WITH WINDOWS 3.1 FASTDISK
  335.  
  336.      FastDisk refers to a set of device drivers that are an internal part of
  337.      Windows 3.1.  It allows Windows to communicate directly with AT
  338.      register set compatible, also called WD1003 compatible, disk drive
  339.      controllers.  Most MFM, RLL, IDE and many ESDI controllers fall into
  340.      this category.  SCSI host adapters and ESDI adapters with translations
  341.      schemes that exceed 16 heads are not supported by FastDisk at this
  342.      time.  FastDisk support is not required to run Windows 3.1, in fact it
  343.      is not even enabled by default.  Refer to your Windows documentation
  344.      for more information on what FastDisk is and how to it can be enabled
  345.      if your hardware supports it.
  346.  
  347.      Since FastDisk communicates directly with the registers on the
  348.      controller, it bypasses DMDRVR.BIN and XBIOS.OVL completely.  Also
  349.      since FastDisk uses the same command structures as BIOS INT13 to access
  350.      a drive, it can not access above 1024 cylinders.  If Windows detects
  351.      that XBIOS is loaded to provide over 1024 cylinder support, it will
  352.      disable FastDisk.  Windows will allow FastDisk to be used with
  353.      DMDRVR.BIN on drives not over 1024 cylinders, provided the controller
  354.      itself is FastDisk compatible.
  355. ----------------------------------------------------------------------------
  356.